package com.puboot.module.blog.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.puboot.module.blog.model.Customer;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CustomerMapper extends BaseMapper<Customer> {

    List<Customer> findAll(@Param("page") IPage<Customer> page, @Param("customer") Customer customer);

    Integer updateStateByIds(@Param("state") Integer state, @Param("ids") List<Integer> ids);

    void updatePasswordByUsername(@Param("password") String newPassword, @Param("username") String username);
}
